import java.util.HashMap
import scala.xml.Node

object Interpreter {
  
  def evaluate(exp: String, env: HashMap[String, Any]): Any =
    1
  
  def evaluate(exp: Seq[Node], env: HashMap[String, Any]): Any =
    1
  
  def evaluate(exp: Node, env: HashMap[String, Any]): Any = exp match {
    case <item>{item}</item>       => evaluate(item.text, env)
    case <list>{items @ _*}</list> => evaluate(items, env)
    case _                         => Nil
  }
  
  def main(args : Array[String]) = {
    val env = new HashMap[String, Any]
    xml.XML.loadFile("tests/hello.xml").child.foreach(exp => evaluate(exp, env))
  }
}
